<!DOCTYPE html>
<html lang="en">
<head>
    <title>宠物之家</title>
    <meta charset="utf-8">
    <link rel="icon" href="__PUBLIC__/img/Pet/favicon.ico">
    <link rel="shortcut icon" href="__PUBLIC__/img/Pet/favicon.ico" />
    <link rel="stylesheet" href="__PUBLIC__/css/Pet/style.css">
    <link rel="stylesheet" href="__PUBLIC__/css/Pet/slider.css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/jquery-migrate-1.1.1.js"></script>
    <script src="__PUBLIC__/js/superfish.js"></script>
    <script src="__PUBLIC__/js/jquery.carouFredSel-6.1.0-packed.js"></script>

    <script src="__PUBLIC__/js/jquery.equalheights.js"></script>
    <script src="__PUBLIC__/js/jquery.easing.1.3.js"></script>
    <script src="__PUBLIC__/js/tms-0.4.1.js"></script>
    <script src="__PUBLIC__/js/jquery.ui.totop.js"></script>

    <script>
        $(window).load(function(){
            $('.slider')._TMS({
                show:0,
                pauseOnHover:false,
                prevBu:'.prev',
                nextBu:'.next',
                playBu:false,
                duration:800,
                preset:'fade',
                pagination:true,//'.pagination',true,'<ul></ul>'
                pagNums:false,
                slideshow:8000,
                numStatus:false,
                banners:true,
                waitBannerAnimation:false,
                progressBar:false
            })
        });




        $(window).load (
            function(){$('.carousel1').carouFredSel({auto: false,prev: '.prev',next: '.next', width: 960, items: {
                visible : {min: 3,
                    max: 3},
                height: 'auto',
                width: 300,

            }, responsive: true,

                scroll: 1,

                mousewheel: false,

                swipe: {onMouse: true, onTouch: true}});


            } );

        jQuery(document).ready(function() {
            $().UItoTop({ easingType: 'easeOutQuart' });
        });

    </script>
</head>
<body  class="page1">

<header>
    <div style="float:right;padding:10px;margin:10px;"> <!-- Logo Div -->
        <?php if(($_SESSION['LoginName'])&&($_SESSION['is_login'])){?>
            欢迎您：<?php echo $_SESSION['LoginName'];?>&nbsp;&nbsp;&nbsp;<a href="__APP__/home/index/loginout">退出</a>
        <?php }else{?>
            <ul>
                <li><a href="__APP__/home/index/login">登录</a></li>
                <li><a href="__APP__/home/index/reg">注册</a></li>
            </ul>
        <?php }?>
    </div>
    <div class="container_12">
        <div class="grid_12">
            <h1><a href="index.html"><img src="__PUBLIC__/img/Pet/logo.png" alt="Gerald Harris attorney at law"></a> </h1>
            <div class="menu_block">
                <nav  class="" >
                    <ul class="sf-menu">
                        <li class="current"><a href="__APP__/Home/Pet/index">首页</a></li>
                        <li class="with_ul"><a href="__APP__/Home/Pet/ency">宠物百科 </a></li>
                        <li><a href="__APP__/Home/Pet/hospital">宠物医院</a>
                            <ul>
                                <li><a href="__APP__/home/pet/issue_illness">萌宠生病</a></li>
                                <li><a href="__APP__/home/pet/doctor_advice">医生建议</a></li>
                                <li><a href="__APP__/home/pet/doctor_cer">医资认证</a></li>
                                <li><a href="__APP__/home/pet/doctor_cure">医行天下</a></li>
                            </ul>
                        </li>
                        <li><a href="__APP__/Home/Pet/home">宠物家园</a>
                            <ul>
                                <li><a href="__APP__/home/pet/photowall">照片墙</a></li>
                                <li><a href="__APP__/home/pet/publish">发帖</a></li>
                            </ul>
                        </li>
                        <li><a href="__APP__/Home/Pet/market">宠物领养</a>
                            <ul>
                                <li><a href="__APP__/home/pet/sale">发布信息</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</header>
<div class="top_block">
    <div class="slider-relative">
        <div class="slider-block">
            <div class="slider">
                <ul class="items">
                    <li><img src="__PUBLIC__/img/Pet/slide.jpg" alt="">
                        <div class="banner">They Need  Your <span>Love</span> and <i>Care</i><p>It is so easy to make them happy</p></div>
                    </li>
                    <li><img src="__PUBLIC__/img/Pet/slide1.jpg" alt="">
                        <div class="banner">They Need  Your <span>Love</span> and <i>Care</i><p>It is so easy to make them happy</p></div>
                    </li>
                    <li><img src="__PUBLIC__/img/Pet/slide2.jpg" alt="">
                        <div class="banner">They Need  Your <span>Love</span> and <i>Care</i><p>It is so easy to make them happy</p></div>
                    </li>
                    <li><img src="__PUBLIC__/img/Pet/slide3.jpg" alt="">
                        <div class="banner">They Need  Your <span>Love</span> and <i>Care</i><p>It is so easy to make them happy</p></div>
                    </li>
                </ul>
            </div>
        </div>
    </div>

</div>
<div class="page1_block">
    <div class="container_12">
        <div class="grid_6">
            <h2>欢迎来到宠物之家</h2><br>
            <img src="__PUBLIC__/img/pet/<?php echo $ency['photo']?>" alt="" class="img_inner fleft">
            <div class="extra_wrapper style1"><p class="text1"><a href="__APP__/home/pet/ency_detail/pet_id/<?php echo $ency['id']?>" rel="nofollow"><?php echo $ency['name']?></a></p>
                英文名:<?php echo $ency['foreignname']?><br/>
                产  &nbsp;&nbsp;&nbsp;地:<?php echo $ency['chandi']?><br/>
                寿  &nbsp;&nbsp;&nbsp;命:<?php echo $ency['shouming']?><br/>
                别  &nbsp;&nbsp;&nbsp;名:<?php echo $ency['othername']?><br/>

            </div>
            <div class="clear"></div>
            <?php echo mb_substr($ency['introduce'],0,200).'...'?><br/>
            <a href="__APP__/home/pet/ency_detail/pet_id/<?php echo $ency['id']?>" class="btn">More</a>
        </div>
        <div class="copyrights">Collect from <a href="http://www.cssmoban.com/" >Website Template</a></div>
        <div class="grid_5 prefix_1">
            <h2 class="ic1">最新热帖</h2>
            <ul class="list">
                <?php foreach($note_List_home as $k => $val){?>
                    <li>
                        <?php if (($k % 2) != 0){?>
                        <span class="cnt">
                <?php }else{ ?>
                            <span >
                <?php }?>
                                <time datetime="<?php echo date('Y-m-d',$val['time']);?>"><?php echo date('m',$val['time']);?>月<span><?php echo date('d',$val['time']);?>日</span></time></span>
                        <div class="extra_wrapper">
                            <div class="col1"><a href="__APP__/home/pet/note_detail/id/<?php echo $val['id'];?>"><?php echo $val['title'];?></a>

                                <span style="float:right;color: #9b9a9a;">  <i class="icon_author"></i><a href="javascript:void(0)"><?php echo $val['author']?></a></span>
                            </div>
                            <?php echo html_entity_decode($val['content']);?>
                        </div>
                    </li>
                <?php }?>
            </ul>
        </div>
    </div>
</div>
<!--=======content================================-->

<div class="content page1"><div class="ic">More Website Templates @ <a href="http://www.cssmoban.com/" >网页模板</a> - June 10, 2013!</div>
    <div class="container_12">
        <div class="grid_12">
            <a href="#" class="next"></a><a href="#" class="prev"></a>
            <h2>领养信息</h2>
        </div>
        <div class="clear"></div>
        <ul class="carousel1">
            <?php foreach($note_List as $k => $val){?>
            <li class="grid_4">
                <img src="__PUBLIC__/function/upload/<?php echo $val['photo']?>" style="width:139px;height:110px;" alt="" class="img_inner fleft">
                <div class="extra_wrapper pad1">
                    <p class="col2"><a href="#"><?php echo $val['title']?></a></p>
                    出售信息：<?php echo $val['content']?><br/>
                    价格：面议
                </div>
            </li>
            <?php }?>
        </ul>
    </div>
</div>
<div class="bottom_block">
    <div class="container_12">
        <div class="grid_6">
            <h2>每日一剂 </h2><br>
            Praesent quis orci eget diam viverra consequat. Fusce sagittis quam in pulvinar sollicitudin velit velit cursus nibh ullamcorper accumsan sem lectus ut sapien. Donec venenatis posuere velit a convallis neque ullamcorper quis. Integer posuere ipsum eu risus sollicitudin nec varius erat luctus. Fusce fringilla erat ac urna pe llentesque congue. Nunc fringilla, diam sit amet adipi scing bibendum turpis velit feugiat urna, et pharetra neque nisi ac nunc. Vivamus est quam dapibus ullamco rper imperdiet nec, euismod ut arcu. Nulla facilisi. Etiam mauris lorem pulvinar vel con sequat ut pretium ac erat. Morbi facilisis elit eu nisl blandit ac blandit enim faucibus. Praesent quis orci eget diam viverra consequat. Fusce sagittis.
        </div>
        <div class="grid_4 prefix_2">
            <h2 class="ic1">Any Question?</h2>
            <img src="__PUBLIC__/img/Pet/page1_img4.jpg"
                 alt="" class="fleft img_inner">
            <div class="extra_wrapper">
                <div class="cont">
                    Call Us Free:
                    <span>+1 000 000 0000</span>
                </div>
            </div>
            <div class="clear"></div>
            Nunc fringilla, diam sit amet adipi scing bibendum turpis velit feugiat urna, et pharetra neque nisi ac nunc. Viv amus est quam dapibus ullamco rper imperdiet nec euismod ut arcu. Nulla facilisi. Etiam mauris.
        </div>
    </div>
</div>
<!--==============================footer=================================-->

<footer>
    <div class="container_12">
        <div class="grid_12" >

            <p style="margin-left:357px">Pet Home &copy; 2016 | <a href="#">Graduate Project</a> | By Li YiXin </p>

        </div>
        <div class="clear"></div>
    </div>
</footer>
</body>
</html>